home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
DISK
/
EASYFB.ARJ
/
EASYFB.DOC
< prev
next >
Wrap
Text File
|
1991-03-26
|
11KB
|
199 lines
EASYFB -- to simplify using FASTBACK!
A friend who works at the same college as I do, uses Fastback.
She asked me to help automate her backups because she found
Fastback inconvenient to use. No wonder! It turned out that she
always went through a full menu selection each time she used it.
Since I did not use Fastback myself, I had to experiment a bit
before I could help her. The first thing I was able to show her
was how to save "setup files" for the three kinds of backups and
for a restore. This may be a simple concept to seasoned Fastback
users but she wasn't aware of it.
We "set-up" a "Full Backup" of drive C: and performed it. When it
was over, instead of selecting "Quit to DOS" we went to "Options"
and then "Save Setup File F10". That wrote the settings to a disk
file that we called "FULL.FB" (the default is STARTUP.FB). Right
after that we selected to perform a "Differential" backup without
changing any other settings. After it was over we saved those
settings in a setup file called "DAILY.FB". We did the same for
an "Incremental" backup and named that file "INCR.FB". Finally,
we set up and performed a restore and named the file (you guessed
it!) RESTORE.FB.
From then on she would simply change to C:\FASTBACK and type
"FB". When the Fastback menu appeared she would go to "Options"
and select "Load Setup File F9". In response to a setup file
name, she would type "DAILY.FB" (or any one of the other "setup
files" which we had named). It was still necessary to select menu
choices that told Fastback to perform a Backup (or Restore) and
to quit, but even so, it was far more convenient.
I realized later that Fastback provides two files called
BACKUP.BAT and RESTORE.BAT. They execute Fastback with settings
contained in a file called STARTUP.FB. I wrote four batch files
with the same names as the setup files and placed them into the
C:\BAT sub-directory. The file called "FULL.BAT" looks like this.
1 @ECHO OFF
2 CLS
3 CD\FASTBACK
4 COPY FULL.FB STARTUP.FB
5 BACKUP
DAILY.BAT and INCR.BAT were exactly the same except for line 3
where "FULL" became "INCR" or "DAILY". The fourth file called
RESTOR.BAT (to avoid conflict with Fastback's) looked like this.
1 @ECHO OFF
2 CLS
3 CD\FASTBACK
4 COPY RESTORE.FB STARTUP.FB
5 RESTORE
N.B. In order to avoid conflicts with DOS' BACKUP.COM and
RESTORE.COM, I renamed those as BACKUP.OLD and RESTORE.OLD.
Depending on her requirements, she now only had to type any of
"FULL", "DAILY", or "INCR" at the DOS prompt. (Fortunately, she
never had to use "RESTOR".) The .BAT file changed the directory,
renamed the appropriate "Setup File" as "STARTUP.FB" and ran
"BACKUP" (which calls Fastback with the settings) all without
other intervention. It was very convenient for her and she soon
established a simple routine for Fastback backups.
a) A FULL backup (repeated monthly.)
b) DAILY -- a differential ("DAILY") backup until the numbers of
diskettes became too many and the process too time-consuming.
c) Periodically she ran INCR.BAT to append files changed or added
since the last "FULL" backup. That lessened time spent on b).
d) RESTORE waited the day when it was to be needed.
HOW TO DO IT
The archive EASYFB.ZIP should contain the files listed here.
FULL.BAT
DAILY.BAT <= Copy these files into C:\BAT
INCR.BAT or a directory on the DOS path.
RESTOR.BAT
EASYFB.BAT
FULL.FB
DAILY.FB <= Copy these files into C:\FASTBACK or
INCR.FB the directory containing Fastback,
RESTORE.FB *** if you have a 1.2 Meg Drive A:. ***
EASYFB.EXE (QB 4.5 Menu program)
EASYFB.DOC (What you are reading now)
*****************************************************************
The ".FB" files included here are settings (High DMA) for a
12 MHz AT equipped with a 1.2 Meg floppy disk drive A:. If your
machine is so equipped, you may be able to "copy and go" without
the need for creating any "Setup File(s)". Go directly to step
5) or to use the EASYFB menu, the section "GETTING FANCY" .
*****************************************************************
If you don't have a 1.2 Meg drive A:, you will have to run "FB"
to save the setup (.FB) files for your system. Here is how to do
that.
1) Set up Fastback to perform a FULL backup with your system. You
will need to select most of these options only once, so take
your time. Perform the backup and when it is done, quit to the
Main Menu but don't select "Quit to DOS"! Instead, select
"Options" then select "Save Setup File F10" by pressing F10 or
by pressing enter on that option. When prompted for a file
name, you respond with "FULL.FB".
2) Immediately, select a DIFFERENTIAL backup without changing any
other settings. Put another diskette into your drive A:. Don't
worry that there's nothing to back up just now, let Fastback
go as if there were. Just as before, save the settings by
selecting "Options" then pressing F10 or by press enter on the
"Save Setup File F10" option and save the file as "DAILY.FB".
3) Now set up the third ".FB" file using the INCREMENTAL backup
option. Don't make any other changes. Follow the same process
as already described and name the third file "INCR.FB".
4) As a final step select RESTORE, and change whatever settings
you need to. Leave the diskette that you used in step 3) in
place. Then perform the restore which won't take long at all.
Use "Options" with F10 to name the file as "RESTORE.FB".
5) Copy the batch files BU.BAT, FULL.BAT, DAILY.BAT, INCR.BAT,
RESTORE.BAT into your \BAT sub-directory.
You've just performed a "FULL" backup. Safely store the diskettes
in this set. From day-to-day, run "DAILY" to write differential
backups to the same diskette(s) until their numbers become too
many. A differential backup copies "all" files that have changed
or have been created since the last full backup. It does not
reset the archive bit. That means the same files you back up
today will also be backed up tomorrow (along with any of
tomorrow's new files of course.) Eventually more and more
diskettes will be needed and so the process will become longer
and longer.
When the "DAILY" process begins to take too long (there are too
many diskettes in the set) run "INCR". INCR.BAT sets up Fastback
to perform an INCREMENTAL backup. It backs up any changed or new
files (same as the "DAILY" option) and adds the diskette(s) from
this backup to the last "FULL" set. For example, if you used 11
diskettes to perform the last "FULL" backup then "INCR" will set
up Fastback so that it requests diskette(s) beginning at number
12 which it "appends" (i.e. adds to) the last "FULL" set. As
well, an incremental backup resets the backed up files' archive
bits. Store these diskettes in order with your last "FULL" set.
When you are ready to do another FULL backup, type "FULL" at the
DOS prompt and away you go. Should you ever need it, the
"RESTORE" batch file will help make a restore equally simple.
GETTING FANCY
To make the process even more convenient, I wrote my friend a
Menu called "EASYFB.EXE". This is a Quick Basic 4.5 program that
permits one key selection to perform any of the three different
backups or to restore drive C:. There are five choices (3
backups, 1 restore and quit to DOS). If you want to use
EASYFB.EXE then copy it into your \BAT sub-directory or one
that's on the DOS path.
Alternatley, you can copy EASYFB.EXE into your C:\FASTBACK
directory if you have copied the file EASYFB.BAT into your C:\BAT
sub-directory. Follow the instructions for saving setup files as
explained earlier. If you're lucky you might be able to use those
provided. In any case, you must have settings for full,
incremental and differential backups and a restore in the files
called "FULL.FB", "INCR.FB", "DAILY.FB" and "RESTORE.FB". If you
have to create them, name the files exactly as spelled.
After that, it's easy. No need to worry about the other .BAT
files described earlier! Just type "EASYFB" at the DOS prompt,
and make your selection from the menu that appears. Depending on
your choice, EASYFB.EXE changes the directory to C:\FASTBACK,
copies the appropriate .FB file to STARTUP.FB, then executes
"BACKUP" (or "RESTORE"). After Fastback has completed your
selection, you will automatically be returned to the EASYFB menu.
These routines are provided to the Public Domain as is. (No fee
is requested, nor solicited.) They are being used in both forms.
So far I haven't heard of problems. If you have any suggestions,
please drop me a line.
Werner Funkenhauser
403-75 Silvercreek Parkway N.
Guelph, Ont., Canada M1H 7R9
1991/03/12